'use strict';
const validateToken = require('validate-token')
exports.main = async (event, context) => {
  try {
    return await validateToken(event.token)
  } catch (e) {
    //TODO handle the exception
    return {
      status: -2,
      errCode: 'TOKEN_INVALID',
      msg: 'token无效'
    }
  }
};
